    
<div class="container-fluid">
    
      <div class="row">
            <form class="form-inline form-left">
                    <div class="form-group">
                        <label for="inputEmail3" class="control-label">Search</label>
                        <input type="text" class="form-control" bane="txtsearch" placeholder="Enter Text">
                        <button type="submit" class="btn btn-primary">Search</button>
                    </div>
            </form>
            <form class="form-inline form-right">
                    <div class="form-group">
                        <button type="submit" class="btn btn-primary">Add Data</button>
                    </div>
            </form>
          
        <table class="table table-bordered table-striped table-hover">
            <tr>
                <th class="m_tabID" data-field="id" valign="bottom" align="center">#<br><span class="caret"></span></th>
                <th class="m_tab1" data-field="m_offer" valign="bottom" align="center">Issued By<br><span class="caret"></span></th>
                <th class="m_tab2" data-field="m_merc" valign="bottom" align="center">Title<br><span class="caret"></span></th>
                <th class="m_tab1" data-field="m_start" valign="bottom" align="center">Price<br><span class="caret"></span></th>
                <th class="m_tab2" data-field="m_end" valign="bottom" align="center">Term & Condition Redeem<br><span class="caret"></span></th>
                <th class="m_tab1" data-field="m_quota" valign="bottom" align="center">Validity Check<br><span class="caret"></span></th>
            </tr>
            <?php 
            foreach ($query_o as $row)
            {?>
                <tr>
                    <td class="linkid"><a class="decorId" href="#"><?php echo $row->id; ?></a></td>
                    <td><?php echo $row->name; ?></td>
                    <td><?php echo $row->judul_offer; ?></td>
                    <td><?php echo $row->harga; ?></td>
                    <td><?php echo $row->tc_redeem; ?></td>
                    <td><?php if ($row->valid_at == -1){ echo 'Except Outlet';}else if ($row->valid_at == 0){echo 'No Outlet Check';}else if ($row->valid_at == 1){echo 'Valid At';} ?></td>
                </tr>
            <?php 
            }            
            ?>
        </table>
      </div>
            <form class="form-inline paging-left">
                    <div class="form-group">
                        <button type="submit" class="btn btn-primary">Add Data</button>
                    </div>
            </form>
       
    </div>
      
      
      
  </body>
</html>